package top.yuzt.animalserver.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.yuzt.animalserver.entity.Feed;
import top.yuzt.animalserver.entity.Feedplan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuzt
 * @since 2024-06-24
 */
@Mapper
public interface FeedplanMapper extends BaseMapper<Feedplan> {
    @Select("SELECT * FROM feedplan WHERE animal_id = #{id}")
    Feedplan findByAnimalid(Integer id);
}
